package com.sky.ok.shiro.mapper;

import com.sky.ok.shiro.entity.Permission;
import com.sky.ok.shiro.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * @author 余心乐sky
 * @create 2018-11-23 8:43
 **/
@Mapper
public interface  PermissionMapper {
    Set<Permission> findPermissionsByRoleId(@Param("roles") Set<Role> roles);
}
